<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_campphase.js此处编写
 -->
 <template>
    <div>
        <view-grid
            ref="grid"
            :columns="columns"
            :detail="detail"
            :editFormFields="editFormFields"
            :editFormFileds="editFormFields"
            :editFormOptions="editFormOptions"
            :searchFormFields="searchFormFields"
            :searchFormFileds="searchFormFields"
            :searchFormOptions="searchFormOptions"
            :table="table"
            :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_camp_configuration.js";
    import ViewGrid from "@/components/basic/viewT.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'phase_id_fk',
                    footer: "Foots",
                    cnName: '结营报告',
                    name: 'V_campphase',
                    url: "/V_campphase/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {campsite_name:""},
                searchFormOptions: [
                                    [{"title":"营地名称","field":"campsite_name",type:'text'}]
                ],
                columns: [
                        // {field:'campsite_id_fk',title:'营地编号',type:'int',width:90,require:true,align:'left',sortable:true},
                       {field:'campsite_name',title:'营地名称',type:'string',width:90,align:'left'},
                       {field:'phase_name',title:'营期名称',type:'string',width:120,require:true,align:'left'},
                    //    {field:'contractconfirmed',title:'已确认数量',type:'bigint',width:90,require:true,align:'left'},
                    //    {field:'contractnotconfirmed',title:'未确认数量',type:'bigint',width:90,require:true,align:'left'},
                       {field:'peoplenum',title:'参营人数',type:'bigint',width:90,require:true,align:'left'},
                    //    {field:'phase_id_fk',title:'营期id',type:'int',width:90,require:true,align:'left'},
                    //    {field:'prepareform',title:'准备表单已填写数量',type:'bigint',width:90,require:true,align:'left'},
                    //    {field:'prepareformno',title:'准备表单已未填写数量',type:'bigint',width:90,require:true,align:'left'}
                    ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
